package bean;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Album entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Album implements java.io.Serializable {

	// Fields

	private Integer albumId;
	private User user;
	private String albumName;
	private String albumLocation;
	private Date createdAt;
	private Set userSnapshots = new HashSet(0);

	// Constructors

	/** default constructor */
	public Album() {
	}
	
	/** minimal constructor */
	public Album(User user, String albumName,
			String albumLocation, Date createdAt) {
		this.user = user;
		this.albumName = albumName;
		this.albumLocation = albumLocation;
		this.createdAt = createdAt;
	}

	/** normal constructor */
	public Album(Integer albumId, User user, String albumName,
			String albumLocation, Date createdAt) {
		this.albumId = albumId;
		this.user = user;
		this.albumName = albumName;
		this.albumLocation = albumLocation;
		this.createdAt = createdAt;
	}

	/** full constructor */
	public Album(Integer albumId, User user, String albumName,
			String albumLocation, Date createdAt, Set userSnapshots) {
		this.albumId = albumId;
		this.user = user;
		this.albumName = albumName;
		this.albumLocation = albumLocation;
		this.createdAt = createdAt;
		this.userSnapshots = userSnapshots;
	}

	// Property accessors

	public Integer getAlbumId() {
		return this.albumId;
	}

	public void setAlbumId(Integer albumId) {
		this.albumId = albumId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getAlbumName() {
		return this.albumName;
	}

	public void setAlbumName(String albumName) {
		this.albumName = albumName;
	}

	public String getAlbumLocation() {
		return this.albumLocation;
	}

	public void setAlbumLocation(String albumLocation) {
		this.albumLocation = albumLocation;
	}

	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public Set getUserSnapshots() {
		return this.userSnapshots;
	}

	public void setUserSnapshots(Set userSnapshots) {
		this.userSnapshots = userSnapshots;
	}

}